@if ($paginator->hasPages())
    <ul class="page_pagination style-2 center">
        {{--Previous Page Link--}}
        @if ($paginator->onFirstPage())
            <li><a class="tran3s" href="javascript:void(0)"><i class="fa fa-angle-left" aria-hidden="true"></i></a></li>
        @else
            <li>
                <a class="tran3s"  href="{{ $paginator->previousPageUrl() }}" rel="prev" >
                    <i class="fa fa-angle-left" aria-hidden="true"></i>
                </a>
            </li>
        @endif

        {{-- Pagination Elements --}}
        @foreach ($elements as $element)
            {{-- "Three Dots" Separator --}}
            @if (is_string($element))
                <li class=" disabled"><span class="page-link">{{ $element }}</span></li>
            @endif

            {{-- Array Of Links --}}
            @if (is_array($element))
                @foreach ($element as $page => $url)
                    @if ($page == $paginator->currentPage())
                        <li><a class="active tran3s" href="javascript:void(0)" >{{ $page }}</a></li>
                    @else
                        <li><a class="tran3s" href="{{ $url }}">{{ $page }}</a></li>
                    @endif
                @endforeach
            @endif
        @endforeach

        {{-- Next Page Link --}}
        @if ($paginator->hasMorePages())
            <li>
                <a class="tran3s" href="{{ $paginator->nextPageUrl() }}" rel="next">
                    <i class="fa fa-angle-right" aria-hidden="true"></i>
                </a>
            </li>
        @else
            <li>
                <a href="javascript:void(0)" class="tran3s">
                    <i class="fa fa-angle-right" aria-hidden="true"></i>
                </a>
            </li>
        @endif
    </ul>
@endif
